/*
 * Copyright 2010. 
 * 
 * This document may not be reproduced, distributed or used 
 * in any manner whatsoever without the expressed written 
 * permission of xrkol Corp. 
 * 
 * $Rev: Rev $
 * $Author: Author $
 * $LastChangedDate: LastChangedDate $
 *
 */

package com.xrkol.sharelib.dao;

import java.util.List;

import com.xrkol.sharelib.entity.Teacher;

/**
 * @author peng.xia
 *
 */
public interface TeacherDao extends BaseDao<Teacher, String>{

    Teacher findByUserName(String userName);

    List<Teacher> findTeachersWithPagination(String schoolId, Integer page);

    List<Teacher> getAllTeachers(String schoolId);
    
    List<Teacher> findManagersWithPaging(String schoolId,Integer page);

    Teacher findByUserId(String userId);

    boolean checkExist(Teacher teacher);

}
